<?php
/**
 * Logout page controller
 *
 * @author den
 *
 */

class LogoutController extends modules_default_controllers_ControllerBase
{
	public function indexAction()
	{
		Lemar_User::logout();
		$oFlashMessenger = $this->_helper->getHelper('FlashMessenger');
		$oFlashMessenger->addMessage(Zend_Registry::get('Zend_Translate')->translate('LOGOUT_MESSAGE'));
		$this->_redirect('/');
	}
}
